<!DOCTYPE html>
<html>

<head>
    <title>后台</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="<?=HW_CSS?>style.css">
    <link rel="stylesheet" href="<?=HW_CSS?>bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="<?=HW_CSS?>dataTables.bootstrap.css">
    <link rel="stylesheet" href="<?=HW_CSS?>base.css">
    <link rel="stylesheet" type="text/css" href="<?=HW_CSS?>table_list.css">
</head>

<body>
    
        <!-- toolbar_container -->
        <div id="toolbar_container">
            <div class="tb_item">
                <a href="<?=base_url().'Admin/AdminUser/addAdminUser'?>" class="new_iframe">新增</a>
            </div>
            <div class="tb_item">
                <button type="button" data-toggle="modal" data-target="#filter_modal">筛选</button>
            </div>
            <div class="tb_item">
                <button type="button" id='freeze' url="<?=base_url().'Admin/AdminUser/freeze'?>" >冻结</button>
            </div>
            <div class="tb_item">
                <button type="button" id='thaw' url="<?=base_url().'Admin/AdminUser/fraw'?>">解冻</button>
            </div>
            <div class="tb_item">
                <a  href="<?=base_url().'Admin/AdminUser/index'?>">刷新</a>
            </div>
            <div class="search_item">
                <input type='input' name='search' placeholder='请输入搜索内容' >
                <button type='submit' style="color:#4990E2;" id='localSearch'>搜索</button>
            </div>
        </div>
        <form method="POST" action="" class="main_form">
        <div class="box-body table-responsive">
            <table id="example" class="table table-hover table-bordered">
                <thead>
                    <tr>
                        <th class="three"><label><input type="checkbox" id="check-all" class="checkAll">全选</label></th>
                        <th class="five">序号</th>
                        <th class="ten">账号</th>
                        <th class="five">姓名</th>
                        <th class="five">角色</th>
                        <th class="five">账号状态</th>
                        <!-- <th class="five">权限</th -->
                        <th class="ten">创建时间</th>
                        <!-- <th class="blank"></th> -->
                    </tr>
                </thead>
                <tbody>
                    <?php if(isset($adminuser)){foreach($adminuser as $k=>$val): ?>
                    <tr>
                        <td><input type="checkbox" class="checkOne" name="ids[]" value="<?=$val['id']?>"></td>
                        <td data-toggle="popover" data-trigger="hover" data-placement="bottom" data-container="body" data-content="testesteste">
                            <?=$k+1?>
                        </td>
                        <td data-toggle="popover" data-trigger="hover" data-placement="bottom" data-container="body" data-content="<?=$val['account']?>">
                            <?=$val['account']?>
                        </td>
                        <td data-toggle="popover" data-trigger="hover" data-placement="bottom" data-container="body" data-content="<?=$val['username']?>">
                            <a class='new_iframe' href="<?=base_url().'Admin/AdminUser/addAdminUser/'.$val['id']?>">
                                <?=$val['username']?>
                            </a>
                        </td>
                        <td data-toggle="popover" data-trigger="hover" data-placement="bottom" data-container="body" data-content="<?=$val['role_name']?>">
                            <?=$val['role_name']?>
                        </td>
                        <td data-toggle="popover" data-trigger="hover" data-placement="bottom" data-container="body" data-content="<?=$val['status_text']?>">
                            <?=$val['status_text']?>
                        </td>
                        <td data-toggle="popover" data-trigger="hover" data-placement="bottom" data-container="body" data-content="<?=$val['create_time']?>">
                            <?=$val['create_time']?>
                        </td>
                    </tr>
                    <?php endforeach; }?>
                </tbody>
            </table>

        <!-- 筛选模态框 -->
        <div id="filter_modal" class="modal fade bs-example-modal-sm">
            <div class="modal-dialog modal_main delete_modalwidth">
                <div class="modal-content modal_border">
                    <div class="modal-header modal_h">
                        <button type="button" class="close" data-dismiss="modal">
                            <span aria-hidden="true">&times;</span>
                            <span class="sr-only">Close</span>
                        </button>
                        <h4 class="modal-title" id="myModalLabel">筛选</h4>
                    </div>

                    <div class="modal-body">
                        <!-- <form></form> -->
                        <form method="POST" action="<?=base_url().'Admin/AdminUser/index'?>" class="form-horizontal" id="filterForm">
                            <div class="form-group">
                                <label for="" class="col-sm-2 control-label">创建时间</label>
                                <div class="col-sm-5">
                                    <input name="start_time" type="date" class="form-control" required>
                                </div>
                                <div class="col-sm-5">
                                    <input type="date" name='end_time' class="form-control" required>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="" class="col-sm-2 control-label">角色</label>
                                <div class="col-sm-10">
                                    <select name="role" id="" class="form-control">
                                        <option value="1" selected>系统管理员</option>
                                        <option value="2">操作员</option>
                                        <option value="3">财务人员</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="" class="col-sm-2 control-label">账号状态</label>
                                <div class="col-sm-10">
                                    <label class="radio-inline">
                                        <input type="radio" id="" name="status" value="1" checked> 正常
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" id="" name="status" value="0"> 冻结
                                    </label>
                                </div>
                            </div>
                            <div class="modal-footer modal_f">
                                <button id='filterBtn' type="submit" class="btn btn-primary">确定</button>
                                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
</body>
<script type="text/javascript" src="<?=HW_STA?>lib/require.js" data-main="<?=HW_STA?>module/setting/setting.js"></script>

</html>